<?php
/**
 * Clase Base Bean para BaseImStockBN
 *
 * @package    Sedapal
 * @subpackage BaseImStockBN
 * @author     hans
 * @version    SVN:: BaseImStockBN.class.php,v 1.1 2012-03-18 20:27:48 Hans.parra Exp $
 */
abstract class BaseImStockBN
{
  protected $AlmId;
  protected $ArtId;
  protected $CantFisico;
  protected $CantReserva;
  protected $CantDsipon;
  protected $CostoProm;
  protected $CostoUlt;
  protected $ModifUsr;
  protected $ModifFecha;
  protected $Mensaje;
  protected $Error;

  public function getAlmId(){
    return $this->AlmId;
  }
  public function setAlmId($v1){
    $this->AlmId = $v1; 
  }

  public function getArtId(){
    return $this->ArtId;
  }
  public function setArtId($v1){
    $this->ArtId = $v1; 
  }

  public function getCantFisico(){
    return $this->CantFisico;
  }
  
  public function setCantFisico($v1){
    $this->CantFisico = $v1; 
  }

  public function getCantReserva(){
    return $this->CantReserva;
  }
  public function setCantReserva($v1){
    $this->CantReserva = $v1; 
  }

  public function getCantDsipon(){
    return $this->CantDsipon;
  }
  public function setCantDsipon($v1){
    $this->CantDsipon = $v1; 
  }

  public function getCostoProm(){
    return $this->CostoProm;
  }
  public function setCostoProm($v1){
    $this->CostoProm = $v1; 
  }

  public function getCostoUlt(){
    return $this->CostoUlt;
  }
  public function setCostoUlt($v1){
    $this->CostoUlt = $v1; 
  }

  public function getModifUsr(){
    return $this->ModifUsr;
  }
  public function setModifUsr($v1){
    $this->ModifUsr = $v1; 
  }

  public function getModifFecha(){
    return $this->ModifFecha;
  }
  public function setModifFecha($v1){
    $this->ModifFecha = $v1; 
  }

  public function getMensaje(){
    return $this->Mensaje;
  }
  public function setMensaje($vl){
    $this->Mensaje = $vl;
  }

  public function getError(){
    return $this->Error;
  }
  public function setError($vl){
    $this->Error = $vl;
  }

  /* Recupera un objeto Im_stockBN desde un RecordSet */
  public static function retrieveByRs( $o_Im_stockRs )
  {
    $o_ImStockBN = new ImStockBN();
    $o_ImStockBN->setAlmId( $o_Im_stockRs['almId'] );
    $o_ImStockBN->setArtId( $o_Im_stockRs['artId'] );
    $o_ImStockBN->setCantFisico( $o_Im_stockRs['cantFisico'] );
    $o_ImStockBN->setCantReserva( $o_Im_stockRs['cantReserva'] );
    $o_ImStockBN->setCantDsipon( $o_Im_stockRs['cantDsipon'] );
    $o_ImStockBN->setCostoProm( $o_Im_stockRs['costoProm'] );
    $o_ImStockBN->setCostoUlt( $o_Im_stockRs['costoUlt'] );
    $o_ImStockBN->setModifUsr( $o_Im_stockRs['modifUsr'] );
    $o_ImStockBN->setModifFecha( $o_Im_stockRs['modifFecha'] );
    return $o_ImStockBN;
  }
}